//
//  QMUILabel+CreateLabel.m
//  shunlianPower2
//
//  Created by 陈镇 on 2018/8/31.
//  Copyright © 2018年 顺联网络. All rights reserved.
//

#import "QMUILabel+CreateLabel.h"

@implementation QMUILabel (CreateLabel)

+(instancetype)createTextColor:(UIColor *)color font:(UIFont *)font textAlignment:(NSTextAlignment)textAlignment{
    QMUILabel *label = [[QMUILabel alloc] init];
    label.textColor = color;
    label.font = font;
    label.textAlignment = textAlignment;
    return label;
}
+(instancetype)createTextColorHex:(NSString *)colorHex fontSize:(CGFloat)fontSize textAlignment:(NSTextAlignment)textAlignment{
  return  [self createTextColor:[UIColor colorWithHexString:colorHex] font:[UIFont systemFontOfSize:fontSize] textAlignment:textAlignment];
}
@end
